package com.atguigu.jxc.service.impl;

import com.atguigu.jxc.dao.UnitDao;
import com.atguigu.jxc.entity.Unit;
import com.atguigu.jxc.service.UnitService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author tongatong
 * @name UnitServiceImpl
 * @description
 * @date 2021/10/15
 * @time 14:52
 */
@Service
public class UnitServiceImpl implements UnitService {
    @Resource
    private UnitDao unitDao;

    @Override
    public List<Unit> list() {

        return unitDao.selectAll();
    }
}
